package com.lanou3g.exam.controller;

import com.lanou3g.exam.model.RegisterModel;
import com.lanou3g.exam.pojo.User;
import com.lanou3g.exam.util.JDBCUitl;

public class RegisterController {
private RegisterModel model =new RegisterModel();
public boolean register (User user){
    if (!model.hasThisName(user.getUsername())){
        return model.register(user);
    }
    return false;
}
}
